import static com.github.llyb120.workflow.definition.All.*


workflow {
    id("flow0")

    startnode "发起", {
        dealer {
            byRoleName "管理员"
        }
        to "审批"
    }

    node "审批", {
        dealer {
            byRoleName "管理员"
        }

        to "结束", {
            expression "[意见] == '同意'"
        }

        to "发起", {
            expression "[意见] == '不同意'"
        }
    }

    endnode "结束", {}
}